
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/select.h>
int main()
{
  int fd =0;
  char buf[128]="yikouLlinux";
  int num;

  fd=open("/dev/hello",O_RDWR);     
  if(fd <0)     
  {     
    printf("open device failed!\n");     
    return -1;               
  }     
  write(fd,buf,sizeof(buf));  
  close(fd);
  return 0;     
  
}
